package com.shop.cereshop.app.dao.buyer;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.cereshop.commons.domain.buyer.UserStopSpeeck;
import org.apache.ibatis.annotations.Param;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper
public interface UserStopSpeeckDAO extends BaseMapper<UserStopSpeeck> {
    UserStopSpeeck selectByUserId (Long userId);

    Integer updateStatusPrivate(List<Long> userId);

    Integer updateStatusGroup(List<Long> userId);

    Integer updateState(@Param("userStopSpeeck") UserStopSpeeck userStopSpeeck);


    Integer updatePrivateChatTime(@Param("userId") Long userId);

    Integer updateGroupChatTime(@Param("userId") Long userId);
}